package com.newStart.proxyDemo.staticProxy;

import java.math.BigDecimal;

/**
 * Project: tobe-better-coder
 * Package: com.newStart.staticProxy
 *
 * @author : Mr.xu
 * @date : 2022/8/15 23:10
 */
public class KingUsbSell implements UsbSell {
    @Override
    public BigDecimal sell(int amount) {
        if (amount < 100) {
            return new BigDecimal(100);
        } else
            return new BigDecimal(90);
    }
}